-- GENERATED SPELL FOR [Draenei Protector] --


function spell0_17531(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17531', 539, 1)
end

function spell1_17531(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17531', 30318, 1)
end

function Sorts_17531(pUnit, Event)
local choix_sorts_17531 = math.random(0, 1)
if choix_sorts_17531 == 0 then
pUnit:RegisterEvent('spell0_17531', 1, 1)
end
if choix_sorts_17531 == 1 then
pUnit:RegisterEvent('spell1_17531', 1, 1)
end
end

function mob17531_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17531', math.random(1500, 3000), 1)
end

function mob17531_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17531_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17531_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17531, 1, 'mob17531_Action')
RegisterUnitEvent(17531, 2, 'mob17531_Leave')
RegisterUnitEvent(17531, 3, 'mob17531_Kill')
RegisterUnitEvent(17531, 4, 'mob17531_Die')
